const request = require('superagent')

request
  .get('http://www.baidu.com')
  .then((res) => {
  console.log(res)
})